import request from '@/utils/request'

// 查询事件列表
export function listExigencyEvent(query) {
  return request({
    url: '/event/manager/exigencyEvent/list',
    method: 'get',
    params: query
  })
}

// 查询事件详细
export function getExigencyEvent(id) {
  return request({
    url: '/event/manager/exigencyEvent/' + id,
    method: 'get'
  })
}

// 新增事件
export function addExigencyEvent(data) {
  return request({
    url: '/event/manager/exigencyEvent',
    method: 'post',
    data: data
  })
}

// 修改事件
export function updateExigencyEvent(data) {
  return request({
    url: '/event/manager/exigencyEvent',
    method: 'post',
    data: data
  })
}

// 删除事件
export function delExigencyEvent(id) {
  return request({
    url: '/event/manager/exigencyEvent/' + id,
    method: 'delete'
  })
}

// 导出事件
export function exportExigencyEvent(query) {
  return request({
    url: '/event/manager/exigencyEvent/export',
    method: 'get',
    params: query
  })
}

// 修改
export function putExigencyEvent(id) {
  return request({
    url: '/event/manager/exigencyEvent/getEventById/' + id,
    method: 'get',
  })
}

// 删除情景
export function deleteEventsceneId(id) {
  return request({
    url: '/event/manager/exigencyEvent/deleteSceneById/' + id,
    method: 'get',
  })
}

// 删除方案
export function deleteEventdisposalConceptId(id) {
  return request({
    url: '/event/manager/exigencyEvent/deleteDisposalConceptById/' + id,
    method: 'get',
  })
}
